<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

    <style>
    .pic {
        margin-bottom: -4px;
        margin-right: 2px;
    }
    </style>
    <link href="../css/deafult.css" rel="stylesheet" type="text/css" />
    <h:form>
	
        <rich:toolBar width="100%" >
		<h:graphicImage value="/images/newlogo.png" styleClass="pic"
				width="173" height="100" />

            <rich:dropDownMenu>
                <f:facet name="label"> 
                    <h:panelGroup>	
                        <!--  <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>-->
                        <h:outputText value="Profile"/>
                    </h:panelGroup>
                </f:facet>
                
                <rich:menuItem 
                	value="Home" 
                	action="#{menuFaces.doInicio}"
                    icon="/images/icons/home.png" />
                
                <rich:menuSeparator id="menuSeparator11" />
                
                <rich:menuItem 
                	value="Profile" 
                	action="#{menuFaces.doPerfil}"
                    icon="/images/icons/perfil.png"
                     >
                 	<f:setPropertyActionListener value="#{menuFaces.usuarioDTO}" target="#{usuarioPerfilFaces.perfilDTO}"/>
                 </rich:menuItem>
                
                <rich:menuItem 
                	value="Sair" 
                	action="#{menuFaces.doSair}"
                	icon="/images/icons/sair.png" />

            </rich:dropDownMenu>

            <rich:dropDownMenu>

                <f:facet name="label">
                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
                        style="vertical-align:middle">
                        <h:outputText value="Objetos de Aprendizagem" />
                    </h:panelGrid>
                </f:facet>

				 <rich:menuItem 
                	value="Cadastrar" 
                	action="#{menuFaces.doCadastrarObjetoDeAprendizagem}" 
                	icon="/images/icons/adicionar.png" />
                	
                	<rich:menuItem 
                	value="Pesquisar" 
                	action="#{menuFaces.doPesquisarObjetoDeAprendizagem}" 
                	icon="/images/icons/pesquisar.png" />

            </rich:dropDownMenu>
            
             <rich:dropDownMenu>

                <f:facet name="label">
                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
                        style="vertical-align:middle">
                        <h:outputText value="Pesquisa" />
                    </h:panelGrid>
                </f:facet>

                <rich:menuItem 
                	value="Amigos do Orkut" 
                	action="#{menuFaces.doPesquisarAmigosDoOrkut}" 
                	icon="/images/icons/pesquisar.png" />

            </rich:dropDownMenu>

        </rich:toolBar >
    
    </h:form>
    <rich:spacer width="1" height="5"/>
    <br />
    <rich:spacer width="1" height="25" />
 
</ui:composition>